﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCAllArt.ascx.cs" Inherits="WebAppArtreve.views.shared.components.arts.WUCAllArt" %>
<%@ Register src="WUCArtImage.ascx" tagname="WUCArtImage" tagprefix="uc1" %>
<%@ Register src="../ratings/WUCOnlyGlobalRating.ascx" tagname="WUCOnlyGlobalRating" tagprefix="uc4" %>
<ul id="jqueryMenu">
    <li>
        <a href="#" class="all">
            All
        </a> 
    </li>     
<asp:ListView ID="ListView1" runat="server" 
DataSourceID="ODSAllCategories">
    <LayoutTemplate>            
        <li id="itemPlaceholder" runat="server" />    
    </LayoutTemplate>
    <ItemTemplate>
        <li>
            <a href="#" class="<%# Eval("Name")%>" >
                <%# Eval("Name")%>
            </a>
        </li>
    </ItemTemplate>
</asp:ListView>
</ul>
<div id="links">
<asp:ListView ID="ListViewMyArt" runat="server" 
DataSourceID="ODSAllArts">
    <LayoutTemplate>
        <article id="itemPlaceholder" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>        
        <article class="artView artViewByCategory <%# Eval("CategoryName")%>">
            <section class="art-image">
                <!--<asp:Image ID="imgArtView" runat="server" ImageUrl="~/styles/assets/images/categories/1203876167KQu09s.jpg" />-->
                <span class="spanPrice">$<%# Eval("Price")%></span><a href="Art.aspx?id=<%# Eval("Id")%>"><img alt="ribbon price" class="ribbon" 
            src="../../../../styles/assets/images/ribbon.png" /><uc1:WUCArtImage ArtId='<%# Eval("Id")%>' ID="WUCArtImage1" runat="server" />   
            </a>                                    
            </section>
            <header>
            <a href="Art.aspx?id=<%# Eval("Id")%>">          
                <h3><span class="spanCategoryName"><%# Eval("CategoryName")%></span> : <%# Eval("Name") %></h3>
            </a>                
                <p class="divRating" ><span class="spanCategoryName">Artist: </span><%# Eval("UserNickname")%></p>
                    <uc4:WUCOnlyGlobalRating ID="WUCOnlyGlobalRating1" runat="server" ArtId='<%# Eval("Id")%>' />                    
                <section class="article-info">                    
                </section>
            </header> 
            <section class="art-description">
                <p class="spanCategoryName">Description:</p>
                <p><%# Eval("Description")%></p>                
            </section>
        </article>
    </ItemTemplate>
</asp:ListView>
</div>
<asp:ObjectDataSource ID="ODSAllArts" 
    runat="server" 
    TypeName="CLibArtreve.bll.ArtBLL"  
    SelectMethod="GetAllArtsWithCategories"
    OnObjectCreating="ODSAllArts_OnObjectCreating" />
<asp:ObjectDataSource ID="ODSAllCategories" 
    runat="server" 
    TypeName="CLibArtreve.bll.CategoryBLL"
    DataObjectTypeName="CLibArtreve.models.Category"  
    SelectMethod="GetAllCategories"
    OnObjectCreating="ODSAllCategories_OnObjectCreating" />